-
Notifications
You must be signed in to change notification settings - Fork 91
Remove deprecated code #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove deprecated code #1408
Conversation
| {/* <Switch | ||
| value={builderState.liveView} | ||
| onChange={onOptionChange('liveView')} | ||
| label={labels.liveView.label} | ||
| tooltip={labels.liveView.tooltip} | ||
| inline | ||
| /> */} | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this?
| </InlineFormLabel> | ||
| <Input | ||
| width={200} | ||
| // width={200} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this?
| /> | ||
| </div> | ||
| <div className="gf-form"> | ||
| <div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we able to remove the divs without styling in this file?
| // REMOVE this whole method | ||
| // getDataProvider(type: SupplementaryQueryType, request: DataQueryRequest<CHQuery>): Observable<DataQueryResponse> | undefined { ... } | ||
|
|
||
| // ADD this instead: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but we didnt remove a function called getDataProvider right?
Do we need to keep this comment even if we did?
| const key = escapeKey(f.key); | ||
| const value = escapeValueBasedOnOperator(f.value, f.operator); | ||
| const condition = i !== adHocFilters.length - 1 ? (f.condition ? f.condition : 'AND') : ''; | ||
| const condition = i !== adHocFilters.length - 1 ? 'AND' : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this always make adHocFileters AND so you will never be able to use OR
| values: field.values, | ||
| const effectiveName = oneLevelDetected && field.name === DEFAULT_LOGS_ALIAS ? 'logs' : field.name; | ||
|
|
||
| const logLevel = LogLevel[effectiveName as keyof typeof LogLevel] ?? LogLevel.unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this to ?? changes the behavor. Is this what we want?
| validateSql: { | ||
| label: 'Validate SQL', | ||
| tooltip: 'Validate SQL in the editor.', | ||
| tooltip: 'Validate SQL in the editor', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe tool tips that are sentences have periods at the end.
This PR removes deprecated code, components and styles.
Code
toBeCalledTimesis deprecated; replaced withtoHaveBeenCalledTimestoBeCalledWithis deprecated; replaced withtoHaveBeenCalledWithlightThemeis deprecated; replaced withthemeerroris deprecated; replaced witherrorsMutableDataFrameis deprecated; replaced withDataFramegetDataProvideris deprecated; replaced withgetSupplementaryQueryRequestconditionis deprecatedComponents
HorizontalGroupandVerticalGroupare deprecated; replaced withStackStyles
gf-formstylesNOTE:
Selectcomponent is deprecated and should be replaced withCombobox. This work is not included in this PR due to testing issues with Combobox.